﻿@model CloudFranceTriple.Models.NewsSet

@{
    ViewBag.Title = Model.Title;
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="content-padding">
    <h1>@Html.DisplayFor(model => model.Title)</h1>
    <section>
        <fieldset>
            <legend>@Model.Title</legend>

            <div class="display-field">
                @Html.DisplayTextFor(model => model.Text)
            </div>

            <div class="display-label">
                @CloudFranceTriple.WebRole.Properties.Resources.NewsAuthor
            </div>
            <div class="display-field">
                @Html.DisplayFor(model => model.Author)
            </div>

            <div class="display-label">
                @CloudFranceTriple.WebRole.Properties.Resources.NewsDateBegin
            </div>
            <div class="display-field">
                @Html.DisplayFor(model => model.DateBegin, "TemplateUserDate")
            </div>

            <div class="display-label">
                @CloudFranceTriple.WebRole.Properties.Resources.NewsDateEnd
            </div>
            <div class="display-field">
                @Html.DisplayFor(model => model.DateEnd, "TemplateUserDate")
            </div>
        </fieldset>
        @if (User.IsInRole("RoleAdminNews"))
        { 
            <p>
                @Html.ActionLink(CloudFranceTriple.WebRole.Properties.Resources.ButtonEdit, "Edit", "News", new { id = Model.Id, area = "Portail" }, null)
            </p>
        }
        @Html.Partial("_NewsBackToList")
    </section>
</div>
